<template>
	<div>
	</div>
</template>

<script>
	import {
		getNews
	} from '@/service/getData';
	export default {
		data() {
				return {
				}
			},
			created() {
				let self = this;
				self.schoolId = self.$route.params.schoolId;
				getNews({
					schoolId: self.schoolId
				}).then((res) => {
					if(res.data!=null){
						self.$router.replace({ name: 'NewsList', params:{schoolId: self.schoolId, type : res.data[0].typeId } })
					}
				})
			}
	}
</script>

<style>
</style>